/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package requeteur;

import java.util.ArrayList;

/**
 *
 * @author Nargisse
 */
public class TermeReqCollection {
    private ArrayList<TermeReq> listTermReq;
    private ParagCollection listparag;
    
    public TermeReqCollection(){
        this.listTermReq = new ArrayList<TermeReq>();
        this.listparag = new ParagCollection();
    }
    
    public void addTermeReq(TermeReq tr){
        this.listTermReq.add(tr);
    }
    
    public ArrayList<TermeReq> getListTermeReq(){
        return this.listTermReq;
    }

    public ArrayList<TermeReq> getListTermFromIdNoeud(int idNoeud){
        ArrayList<TermeReq> t;
        t = this.getListTermeReq();
       
        return t;
    }
    
    public void addParagToHM(){
        for(TermeReq tr : this.listTermReq){
            this.listparag.addParagrapheList(tr.getListPara());
        }
    }
    
    public ArrayList<Paragraphe> getListParg(){
        return this.listparag.getListParagraphes();
    }
}
